package com.example.apple.paopo.dialog;

import android.content.Context;
import android.graphics.Color;

import com.zyao89.view.zloading.ZLoadingDialog;
import com.zyao89.view.zloading.Z_TYPE;


/**
 * Created by apple on 17/12/6.
 */

public class PaoPoDialog {
    private static ZLoadingDialog dialog;
    public static ZLoadingDialog getPaoPoDialog(Context context, String text) {
         dialog = new ZLoadingDialog(context);
        dialog.setLoadingBuilder(Z_TYPE.LEAF_ROTATE)//设置类型
                .setLoadingColor(Color.rgb(00,191,255))//颜色
                .setCanceledOnTouchOutside(false)
                .setHintText(text)
                .setHintTextSize(18) // 设置字体大小 dp
                .setHintTextColor(Color.rgb(00,191,255))  // 设置字体颜色
                .show();
        return dialog;
    }

    public static void releasePaoPoDialog(){
        dialog.dismiss();
        dialog =null;
    }
}
